package com.myhome.money.ssm.springboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Rod
 */
@RestController
public class IndexController {

    private Logger logger = LoggerFactory.getLogger(IndexController.class);

    @RequestMapping("index")
    public String index() {
        logger.debug("这个是 debug 日志");
        logger.info("这个是 info 日志");
        logger.warn("这个是 warn 日志");
        logger.error("这个是 error 日志");
        return "hell home";
    }
}
